<template>
    <bread :data="data" seprator="(●'◡'●)"></bread>
  <router-view  ></router-view>
</template>
<script setup>
import {ref,getCurrentInstance,onMounted} from "vue"
let data=ref([])

onMounted(()=>{

  let instance=getCurrentInstance()

  let $bus=instance.appContext.config.globalProperties.$bus

  $bus.$on('bread',input=>{
    console.log(input);

    data.value=input
  })
})

</script>

